package com.ddd.mill.domain.aggregate.attribute;

import com.ddd.mill.domain.aggregate.attribute.repository.AttributeRepository;
import com.ddd.mill.domain.aggregate.attribute.valueobject.AttributeListVo;
import com.ddd.mill.infrastructure.persistent.domain.BaseAggregate;
import com.ddd.mill.infrastructure.utils.TypeConvertUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liu
 * @title: AttributeAggregate
 * @projectName trading-center
 * @date 2020/11/3010:59
 */
@Slf4j
@Service
public class AttributeAggregate extends BaseAggregate {
    @Resource
    AttributeRepository attributeRepository;

    public List<AttributeListVo> getAttributeList(){
//        return TypeConvertUtils.convert(attributeRepository.getAttributeList(), AttributeListVo.class);
        return null;
    }
}
